a = [1,"下午","用户视觉界面设计","晚上","毛概实践"]
b = [2,"下午","大英","晚上","韩语语言与文化"]
c = [3,"上午","Python","晚上","毛概理论"]
d = [4,"上午","大英","下午","户外体育游戏","晚上","API"]
e = [5,"没课"]
riqi = input ("请输入星期几的阿拉伯数字")
riqi = int(riqi)
shijian = input("请输入上、下午的字符串")
if riqi == a[0]:
    if shijian == a[1]:
        print(a[2])
    elif shijian == a[3]:
        print(a[4])
    else:
        print("没课")
elif riqi == b[0]:
    if shijian == b[1]:
        print(b[2])
    elif shijian == b[3]:
        print(b[4])
    else:
        print("没课")
elif riqi == c[0]:
    if shijian == c[1]:
        print(c[2])
    elif shijian == c[3]:
        print(c[4])
    else:
        print("没课")
elif riqi == d[0]:
    if shijian == d[1]:
        print(d[2])
    elif shijian == d[3]:
        print(d[4])
    elif shijian == d[5]:
        print(d[6])
    else:
        print("没课")
elif riqi == e[0]:
    print("没课")
else:
    print("没课")
    
        
